package com.test.exercise.impl;

import com.test.exercise.Sequence;

/**
 * description: ClientThread  输出线程编号和 number 结果
 * @version v1.0
 * @author w
 * @date 2018年12月1日下午4:23:46
 **/
public class ClientThread extends Thread {
	private Sequence sequence;

	public ClientThread(Sequence sequence) {
		this.sequence = sequence;
	}
	
	@Override
	public void run() {
		for (int i = 0; i < 5; i++) {
			System.out.println(Thread.currentThread().getName() + " ---> " +sequence.getNum());
		}
	}
}
